<?php
include ('../../../__global.php');

class modify_avatar extends ml_controller
{
    public function init()
    {
        $this->set_access(self::ACCESS_SELF , self::NOACCESS_REDIRECT );
    }
    public function initParam()
    {
        
    }
    public function checkParam()
    {

    }
    public function main()
    {
        $this->set_page_id('modifyAvatar');
        
        $uid = $this->__visitor['uid'];
        $headurl = ml_tool_picid::pid2url($uid, ML_HEADER_PICSIZE_100, ML_PICTYPE_HEADER);
        $this->set_scope_var('$header' , $headurl);
        $this->set_page_title("修改头像");
        
        
        ml_tool_actionlog::add_other_action($this->__visitor['uid'] , ML_SINAACTCODE_VIEW_SET_AVATAR);
        $data = array();
        $this->page_output('user::modify_avatar',$data);

    }
}
new modify_avatar();